<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>提示位置 - jQuery EasyUI 演示</title>
	<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
	<link rel="stylesheet" type="text/css" href="../demo.css">
	<script type="text/javascript" src="../../jquery.min.js"></script>
	<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
</head>
<body>
	<h2 title="Tooltip Position">提示框的位置</h2>
	<p title="Click the drop-down list below to change where the tooltip appears.">　　点击下面的下拉列表来改变提示框出现的具体位置。</p>
	<div style="margin:20px 0;"></div>
	<span title="Select position:">选择位置：</span>
	<select onchange="changePosition(this.value)">
		<option value="bottom">底部</option>
		<option value="top">顶部</option>
		<option value="left">左侧</option>
		<option value="right">右侧</option>
	</select>
	<div style="padding:10px 200px">
	<div id="pp" class="easyui-panel easyui-tooltip" title="<br/>此乃提示框的信息……<br/>&nbsp;" style="width:100px;padding:5px">悬停于我</div>
	</div>
	<script type="text/javascript">
		function changePosition(pos){
			$('#pp').tooltip({
				position: pos
			});
		}
	</script>
</body>
</html>